package it.desertsupport.hibernate.dao;

import it.desertsupport.model.User;

import java.util.List;

public interface UserDAO {
	
	public void save(User user) throws Exception;
	public void delete(User user) throws Exception;
	public User getUser(Long id) throws Exception;
	public List<User> findAll() throws Exception;
	public List<User> findByExample(User user) throws Exception;
	public User login(String userName, String password) throws Exception;
	public User marge(User user) throws Exception;
	
}
